package com.gongj.jedis.fbsLock;

/**
 * @program: jedis
 * @description:
 * @author: gongj
 * @Description: TODO
 * @create: 2020-07-11 17:02
 **/
public class Jedisconnect {

    public static void main(String[] args) {
//        Jedis jedis = new Jedis("47.105.198.54");
//        //密码
//        jedis.auth("yj19980402");
//        //测试是否连接成功
//        String ping = jedis.ping();
//        System.out.println(ping);
//        jedis.set("2020711","gognjniubi");
        Redis redis = new Redis();
        redis.execute(jedis ->{
            System.out.println(jedis.get("2020711"));
        });
    }


}
